package com.zhuojy.equity.mall.admin.common.constant;

/**
 * JWT常量类
 */
public class JwtConstants {

	/**
	 * 防止类被实例化
	 */
	private JwtConstants() {
		throw new IllegalAccessError("Utility class");
	}

	/**
	 * JWT存储的请求头
	 */
	public static final String TOKEN_HEADER = "Authorization";

	/**
	 * JWT加解密使用的密钥
	 */
	public static final String SECRET = "mall-admin-secret";

	/**
	 * JWT的超期限时间(60*60*24*7)
	 */
	public static final Long EXPIRATION = 604800L;

	/**
	 * JWT负载中拿到开头
	 */
	public static final String TOKEN_HEAD = "Bearer";
}
